using Cinch;
using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Controls;
using SLS.Base;
using SLS.ExClassLib.Events;
using SLS.ExClassLib.Loc;
namespace SLS.Presentation
{
    /// <summary>
    /// Interaction logic for EditGoodsTypeKeyDef.xaml
    /// </summary>
    [ViewnameToViewLookupKeyMetadata("KEYFOREIGNKEYLIST", typeof(KEYFOREIGNKEYLIST))]
    public partial class KEYFOREIGNKEYLIST : ExKEY
    {
        /*
        [Import("FOREIGNKEYLISTLocalizationModel", typeof(ILocalizationModel))]
        public override ILocalizationModel LocalizationModel
        {
            get { return base.LocalizationModel; }
            set { base.LocalizationModel = value; }
        }   
        */
        public KEYFOREIGNKEYLIST()
        { 
            InitializeComponent();   
            if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
            {
                return;
            }
            BaseTable = "FOREIGNKEYLIST";
            Address = Guid.NewGuid().ToString().ToUpper();              
         }  
        public override void SLBC_Loaded(object sender, RoutedEventArgs e)
        {
            base.SLBC_Loaded(sender, e);
            try
            {
                if (NMICD != null)
                {
                    NMICD.CMDEXE.TextChanged += new TextChangedEventHandler(CMDEXE_TextChanged);
                }
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        } 
    }
} 
